package com.baizhi.springboot.service.impl;

import com.baizhi.springboot.annotation.CacheUsing;
import com.baizhi.springboot.annotation.LogAnnotation;
import com.baizhi.springboot.dao.MenuDao;
import com.baizhi.springboot.entity.Menu;
import com.baizhi.springboot.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuDao menuDao;
    @Override
    //@Transactional(readOnly = true)
    //@LogAnnotation(content = "查询所有的菜单",type = "查询操作")
   // @CacheUsing
    public List<Menu> selectAllMenu() {
        return menuDao.selectAllMenu();
    }
}
